package com.school.service;

import com.school.dto.score.GetScoreDTO;
import com.school.model.Score;
import com.school.vo.score.ScoreAllRankAndUserNameVO;
import com.school.vo.score.ScoreAllRankVO;

import java.util.List;
import java.util.Map;

public interface ScoreService {

    int insertSelective(Score record);

    /**
     * 平均分数接口-单教师
     * @param tId
     * @return
     */
    List<Score> selectAVGBytTId(Integer tId);

    Score getByTIdAndDId(GetScoreDTO dto);

    ScoreAllRankVO getScoreAndNumberByTId(Integer tId);

    ScoreAllRankVO getScoreAndNumberByRole(Integer role);



    /**
     * 平均分数接口-多教师
     * @param
     * @return
     */
    Map<Integer,List<Score>> selectAVGBytTIds(List<Integer> tIds);

    Score getMyToTeacher(Integer cId,Integer tId);

    int deleteByDepId(Score score);

    ScoreAllRankAndUserNameVO userNumberOne(Integer depId);

    List<Score> getArray(Integer tId);


}
